<!DOCTYPE html>
<html lang='en'>
    <head>
        <title>绚试™ MTM管理系统(服装行业量身定制)</title>
        {include file="public/meta" /}
        <link href="/static/assets/stylesheets/plugins/bootstrap_datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body class='contrast-red'>
        {include file="public/header" /}
        <div id='wrapper'>
            <div id='main-nav-bg'></div>
            <nav id='main-nav'>
                <div class='navigation'>
                    {:action('ShowMenu/index',['id' => '1'],'widget')}
                </div>
            </nav>
            <section id='content'>
                <div class='container'>
                    {__CONTENT__}
                    {include file="public/footer" /}    
            </section>
        </div>
        <!-- / jquery [required] -->
        {include file="public/bottomjs" /}
        <script>
            var u = $(".active").parent('ul');
            var uc = u.attr("class");//
            if (uc == 'nav nav-stacked') {
                u.prev().attr("class", "dropdown-collapse in");
                u.show();
            }

        </script>
        <script src="/static/assets/javascripts/plugins/common/moment.min.js" type="text/javascript"></script>
        <script src="/static/assets/javascripts/plugins/bootstrap_datetimepicker/bootstrap-datetimepicker.js" type="text/javascript"></script>
        <!-- / END - page related files and scripts [optional] -->
        <script type="text/javascript">
            $(function () {
                $('#fahuomodal').on('hidden.bs.modal', function () {
                    $(this).removeData("bs.modal");
                })
            });</script>
        <script type="text/javascript">
            $(function () {

                $('#shousuo').click(function () {
                    //取出时间戳  
                    var datetime1 = $('#starttime').data().date;
                    var datetime2 = $('#endtime').data().date;
                    var datetimestamp1 = Date.parse(datetime1).toString();
                    var dts = datetimestamp1.substr(0, datetimestamp1.length - 3);
                    var datetimestamp2 = Date.parse(datetime2).toString();
                    var dts2 = datetimestamp2.substr(0, datetimestamp2.length - 3);
                    if (dts > dts2 && dts2 != '') {
                        alert('开始日期不能大于结束日期');
                    }
                    $('#kaishi').val(datetime1);
                    $('#jiesu').val(datetime2);
                    $('#chaxun').submit();
                });
            });
        </script>  
    </body>
</html>